export const doList = (params) => {
	return uni.$uv.http.get('/orders/getUserList', {
		params
	})
}

export const doLeaseList = (params) => {
	return uni.$uv.http.get(`/orders/getExpire`)
}

export const doLease = (id) => {
	return uni.$uv.http.get(`/orders/renew/${id}`)
}

export const doDetail = (id) => {
	return uni.$uv.http.get(`/orders/getOrderInfo/${id}`)
}

export const doCancel = (id) => {
	return uni.$uv.http.get(`/orders/cancel/${id}`)
}

export const doCancelPay = (id) => {
	return uni.$uv.http.get(`/orders/cancelUnpaid/${id}`)
}

export const doOrderPay = (id) => {
	return uni.$uv.http.get(`/orders/weChatMiniPay/${id}`, {
		custom: {
			toast: true,
			code: true
		}
	})
}

export const doCancelApp = (id) => {
	return uni.$uv.http.get(`/orders/abolish/${id}`)
}

export const doOver = (id) => {
	return uni.$uv.http.post(`/orders/userConfirmFinish/${id}`)
}

export const doLogList = (orderId) => {
	return uni.$uv.http.get(`/leaseOrder/getList/${orderId}`)
}

export const doAppeal = (data) => {
	return uni.$uv.http.post(`/appealRecord/submit`, data)
}

export const doExendTime = (lease) => {
	return uni.$uv.http.get(`/product/getEndTime/${lease}`)
}

export const doPay = (id) => {
	return uni.$uv.http.get(`/leaseOrder/orderPay/${id}`, {
		custom: {
			toast: true,
			code: true
		}
	})
}